
package io.fredia.femicro.gate.ratelimit.config;

import java.util.Date;

import javax.persistence.Entity;
import javax.persistence.Id;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

/**
 * Rate
 * 
 * @author : Fredia
 * @since : 2018年3月12日
 * @version : v1.0.0
 */
@Data
@Entity
@NoArgsConstructor
@AllArgsConstructor
public class Rate {

	@Id
	private String key;
	private Long remaining;
	private Long reset;
	private Date expiration;

}
